package com.jcfk.eam.domain.po.mt;

import com.baomidou.mybatisplus.annotation.Version;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jcfk.common.business.entity.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 量检具领用申请
 *
 * @author libinghai
 * @email 35738025@gqq.com
 * @date 2024-09-08
 */
@Data
@TableName("eam_mt_use_apply")
public class EamMtUseApply extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 申请类型;1:普通领用;2:换型领用
     */
    @TableField("apply_type")
    private Integer applyType;

    /**
     * 单据号
     */
    @TableField("record_code")
    private String recordCode;

    /**
     * 使用部门主键
     */
    @TableField("receive_department_id")
    private String receiveDepartmentId;

    /**
     * 使用部门
     */
    @TableField("receive_department_name")
    private String receiveDepartmentName;

    /**
     * 领用人主键
     */
    @TableField("receive_person_id")
    private String receivePersonId;

    /**
     * 领用人
     */
    @TableField("receive_person_name")
    private String receivePersonName;

    /**
     * 当前产品主键
     */
    @TableField("current_product_id")
    private String currentProductId;

    /**
     * 当前产品名称
     */
    @TableField("current_product_name")
    private String currentProductName;

    /**
     * 换型产品主键
     */
    @TableField("change_product_id")
    private String changeProductId;

    /**
     * 换型产品名称
     */
    @TableField("change_product_name")
    private String changeProductName;

    /**
     * 使用位置主键
     */
    @TableField("use_place_id")
    private String usePlaceId;

    /**
     * 使用位置名称
     */
    @TableField("use_place_name")
    private String usePlaceName;

    /**
     * 申请日期
     */
    @TableField("apply_date")
    private Date applyDate;

    /**
     * 申请原因
     */
    @TableField("apply_reason")
    private String applyReason;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 创建人
     */
    @TableField("created_user_name")
    private String createdUserName;

    /**
     * 更新人
     */
    @TableField("last_updated_user_name")
    private String lastUpdatedUserName;

    @Version
    @TableField(value = "version")
    private Long version;
}
